#pragma once
// -------------------------------------------------
// ZED Kit
// -------------------------------------------------
//   File Name: algorithm.hpp
//      Author: Ziming Li
//     Created: 2023-05-14
// -------------------------------------------------
// Copyright (C) 2023 MingYang Software Technology.
// -------------------------------------------------

#ifndef ZED_ALGORITHM_HPP
#define ZED_ALGORITHM_HPP

#include <algorithm>

namespace zed {

template <class C>
bool contains(const C &c, const typename C::value_type &v) {
    return std::find(c.begin(), c.end(), v) != c.end();
}

} // namespace zed

#endif // ZED_ALGORITHM_HPP
